package com.bootdo.item.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.item.dao.ItemCategoryDao;
import com.bootdo.item.domain.ItemCategoryDO;
import com.bootdo.item.service.ItemCategoryService;
import org.springframework.transaction.annotation.Transactional;



@Service
@Transactional
public class ItemCategoryServiceImpl implements ItemCategoryService {
	@Autowired
	private ItemCategoryDao itemCategoryDao;
	
	@Override
	public ItemCategoryDO get(Long id){
		return itemCategoryDao.get(id);
	}
	
	@Override
	public List<ItemCategoryDO> list(Map<String, Object> map){
		return itemCategoryDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return itemCategoryDao.count(map);
	}
	
	@Override
	public int save(ItemCategoryDO itemCategory){
		return itemCategoryDao.save(itemCategory);
	}
	
	@Override
	public int update(ItemCategoryDO itemCategory){
		return itemCategoryDao.update(itemCategory);
	}
	
	@Override
	public int remove(Long id){
		return itemCategoryDao.remove(id);
	}
	
	@Override
	public int batchRemove(Long[] ids){
		return itemCategoryDao.batchRemove(ids);
	}
	
}
